/**
 * Created by Administrator on 2016/8/4.
 */
$(function(){
    var trun = true;
    $('form .password a i').on('click',function(){
        if(trun == true){
            $('form .password a i').css('background-position','-60px -93px');
            trun = false;
        }else{
            $('form .password a i').css('background-position','-33px -90px');
            trun = true;
        }
    });

    $('form .remember-fixed .remember-state').on('click',function(){
        if(trun == true){
            $('form .remember-fixed .remember-state').css('background-position','-31px -127px');
            $('form .remember-fixed p').css('display','none');
            trun = false;
        }else{
            $('form .remember-fixed .remember-state').css('background-position','0 -127px');
            $('form .remember-fixed p').css('display','block');
            trun = true;
        }
    });



});
$(function(){
    $(document).bind("click",function(e){
        var target = $(e.target);
        if(target.closest(".phone input").length == 0 ){
            $(".phone .SJH").hide();
        }else{
            $(".phone .SJH").show();
        }
    });
    $(document).bind("click",function(e){
        var target = $(e.target);
        if(target.closest(".verificantion input").length == 0 ){
            $(".verificantion .SJH").hide();
        }else{
            $(".verificantion .SJH").show();
        }
    });
    $(document).bind("click",function(e){
        var target = $(e.target);
        if(target.closest(".password input").length == 0 ){
            $(".password .SJH").hide();
        }else{
            $(".password .SJH").show();
        }
    });

    $('.login-footer ul li .WeChat').hover(function(){
        $('.login-footer ul li .WeChat-EWM').css('display','block');
    },function(){
        $('.login-footer ul li .WeChat-EWM').css('display','none');
    })
});